<?php
/********************************************************
 *
 * 此文件的作用:
 *		文章表的入口
 *
 * @copyright Copyright (c) 2008-2009
 * @author 刘昌功 lcg635@126.com
 *
 ********************************************************/
defined('APP_DIR') or die('404 Not Found');

FLEA::loadClass('Common_Table');

class Table_Feedback extends Common_Table {
    var $tableName = 'feedback';
    var $primaryKey = 'feedback_id';

	function form($data = null) {
		$this->_ui = FLEA::initWebControls();
		$form = array(
			'feedback_id' => $this->_ui->control('Hidden', 'feedback_id',
				array(
					'value' => $data['feedback_id']
				),
				true
			),
			'inCharge' => $this->_ui->control('Textbox', 'inCharge',
				array(
					'value' => $data['inCharge'],
					'required' => 'true',
					'check' => 'notBlank',
					'size' => 98,
					'showName' => '负责人'
				),
				true
			),
			'appraisal' => $this->_ui->control('Textbox', 'appraisal',
				array(
					'value' => $data['appraisal'],
					'required' => 'true',
					'check' => 'notBlank',
					'size' => 98,
					'showName' => '反馈情况'
				),
				true
			)
		);
		return $form;
	}
}
